Imports System.Data.SqlClient

Public Class TraineesSkills
    Public Shared Function GetTraineeSkill() As DataTable
        Str = "SELECT TRAINEE_SKILL_ID,TRAINEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )',MAJOR,SKILL,GRADE,NOTE,ACTIVE  FROM  VIEW_TRAINEE_SKILL  WHERE ACTIVE=1 ORDER BY TRAINEE_SKILL_ID ASC"


        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class